<?php
 require_once("../inc/functions.php");
 
function addSalesOrder($order_array)
{
	$database = getDB();
	
	$order_array = arrayEscape($order_array, $database);
	
	$statement = "INSERT INTO Sales_Order (change_units, Sku_id) VALUES ('$new_address_array[change_units]', '$new_address_array[Sku]')";

	$results = $database->query($statement);
	
	$error = $database->error;

	$database->close();
	
	return $error == "" ? true : array('SQL Error'=> $error);
	
	
}

function viewSalesOrder($orderid)
{
	
	
}

function viewSalesOrders_all()
{
	
	
}
?>